﻿<%@ Page Language="C#"Inherits="E.Web.training.frames.Management" %>
<%@ Import Namespace="E.Model" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
  <title>在线学习</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <link rel="stylesheet" href="/css/main.css" type="text/css" media="all" />
  <link rel="stylesheet" href="/css/t_main.css" type="text/css" media="all" />
  <link rel="stylesheet" href="/css/t_m.css" type="text/css" media="all" />
</head>
<body>
  <div class="m_top"></div>
    
    <% if (newQnACount > 0) { %>
    
  <div class="block_2">
    <div style="width:650px; height:22px;">
      <img alt="" src="/images/training/icon/notice.gif" class="fl" />
      <div class="title">&nbsp;新回复答疑提醒</div>
    </div>
    <div class="spe_line_2"></div>
    <div style="line-height:30px;">&nbsp;您有 <span class="hint"><%=newQnACount%></span> 条新回复答疑信息未查看</div>
  </div>
    
    <% } %>
  
  <!--公告栏-->
  <div class="block_2">
    <div style="width:650px; height:22px;">
      <img alt="" src="/images/training/icon/notice.gif" class="fl" />
      <div class="title">&nbsp;公告栏</div>
    </div>
    <div>
      <div class="fl" style="width:577px;">
        <div class="spe_line_1"></div>
        <div id="noticedatatable">
          <div class="n_rows" style="font-weight:bolder;">
            <div class="n_r_t">标题</div>
            <div class="n_r_c">类别</div>
            <div class="n_r_p">发布者</div>
            <div class="n_r_d">发布时间</div>
          </div>
          
          <% if (noticeList != null && noticeList.Count > 0 ) { %>      
            <% foreach(ShortNoticeModel snm in noticeList) { %>    
          <div class="n_rows">
            <div class="n_r_t"><a href="#?id=<%=snm.ID %>"><%=snm.Title %></a></div>
            <div class="n_r_c"><%=snm.CategoryName %></div>
            <div class="n_r_p"><%=snm.PublisherName %></div>
            <div class="n_r_d"><%=snm.AddDate %></div>
          </div>
            <% } %>
          <% } %>
          <%--<div class="n_rows">
            <div class="n_r_t">标题</div>
            <div class="n_r_c">类别1234</div>
            <div class="n_r_p">管理员</div>
            <div class="n_r_d">2010-5-17 16:49:12</div>
          </div>
          <div class="n_rows">
            <div class="n_r_t">标题</div>
            <div class="n_r_c">类别1234</div>
            <div class="n_r_p">管理员</div>
            <div class="n_r_d">2010-5-17 16:49:12</div>
          </div>
          <div class="n_rows">
            <div class="n_r_t">标题</div>
            <div class="n_r_c">类别1234</div>
            <div class="n_r_p">管理员</div>
            <div class="n_r_d">2010-5-17 16:49:12</div>
          </div>--%>
        </div>
      </div>
      <div class="fl" style="width:73px; padding-top:20px;"><img alt="" src="/images/training/icon/notice_2.gif" /></div>
    </div>
  </div>
  
  <% if (authority == E.Enum.EnumUserAuthority.Public) { %>
  
  <!--我的课程表-->
  <div class="block_2">
    <div style="width:650px; height:22px;">
      <img alt="" src="/images/training/icon/schedule.gif" class="fl" />
      <div class="title">&nbsp;我的课程表</div>
    </div>
    <div class="spe_line_2"></div>
    
    <% if (studyList != null && studyList.Count > 0) { %>
    <div id="scheduledatatable">
      <div class="s_rows" style="font-weight:bolder;">
        <div class="s_r_sc">班级编号</div>
        <div class="s_r_t">课程</div>
        <div class="s_r_c">类别</div>
        <div class="s_r_d">时间</div>
        <div class="s_r_l">课时</div>
        <%--<div class="s_r_a">已学</div>--%>
        <div class="s_r_p">学习进度</div>
        <div class="s_r_s">开始上课</div>
      </div>
      
      <% foreach (StudyLogForListModel model in studyList) { %>
      <div class="s_rows">
        <div class="s_r_sc"><%=model.ClassCode%></div>
        <div class="s_r_t"><%=model.CourseName%></div>
        <div class="s_r_c"><%=model.CourseCategoryName%></div>
        <div class="s_r_d"><%=model.StartTime.ToString("yyyy.M.d")%>-<%=model.EndTime.ToString("yyyy.M.d")%></div>
        <div class="s_r_l"><%=model.SchoolHour%></div>
        <div class="s_r_p">
          <div class="fr p_data">&nbsp;<%=model.Progress%>%</div>
          <div class="fr process_bg" style="margin-top:6px;">
            <div class="process_per" style="width:<%=(model.Progress/2) %>px;"></div>
          </div>
        </div>
        <div class="s_r_s"><a href="/training/study/Study.aspx?id=<%=model.ID %>" target="Study"><img alt="" src="/images/training/icon/arrows_right.gif" style="margin-top:7px;" /></a></div>
      </div>
      <% } %>
        
      <%--<div class="s_rows">
        <div class="s_r_t">课程课程课程课程课程课程</div>
        <div class="s_r_c">类别asdfsafs</div>
        <div class="s_r_d">2010.5.17-2011.5.17</div>
        <div class="s_r_l">123</div>
        <div class="s_r_a">asdfasf</div>
        <div class="s_r_p">
          <div class="fr p_data">&nbsp;80%</div>
          <div class="fr process_bg" style="margin-top:6px;">
            <div class="process_per" style="width:40px;"></div>
          </div>
        </div>
        <div class="s_r_s"><a href="#"><img alt="" src="/images/training/icon/arrows_right.gif" style="margin-top:7px;" /></a></div>
      </div>
      <div class="s_rows">
        <div class="s_r_t">课程课程课程课程课程课程</div>
        <div class="s_r_c">类别asdfsafs</div>
        <div class="s_r_d">2010.5.17-2011.5.17</div>
        <div class="s_r_l">123</div>
        <div class="s_r_a">asdfasf</div>
        <div class="s_r_p">
          <div class="fr p_data">&nbsp;80%</div>
          <div class="fr process_bg" style="margin-top:6px;">
            <div class="process_per" style="width:40px;"></div>
          </div>
        </div>
        <div class="s_r_s"><a href="#"><img alt="" src="/images/training/icon/arrows_right.gif" style="margin-top:7px;" /></a></div>
      </div>
      <div class="s_rows">
        <div class="s_r_t">课程课程课程课程课程课程</div>
        <div class="s_r_c">类别asdfsafs</div>
        <div class="s_r_d">2010.5.17-2011.5.17</div>
        <div class="s_r_l">123</div>
        <div class="s_r_a">asdfasf</div>
        <div class="s_r_p">
          <div class="fr p_data">&nbsp;80%</div>
          <div class="fr process_bg" style="margin-top:6px;">
            <div class="process_per" style="width:40px;"></div>
          </div>
        </div>
        <div class="s_r_s"><a href="/training/study/Study.aspx?cid=1" target="Study"><img alt="" src="/images/training/icon/arrows_right.gif" style="margin-top:7px;" /></a></div>
      </div>--%>
    </div>
      
    <div class="fr" style="margin:8px 0 0 0;"><%=mypager%></div>
      
    <% }
       else
       { %>
    <% } %>
  </div>
  
  <% } %>
  
  <!--全部课程-->
  <%--<div class="block">
    <div style="width:650px; height:22px;">
      <img alt="" src="/images/training/icon/alllesson.gif" class="fl" />
      <div class="title">&nbsp;全部课程</div>
    </div>
    <div class="spe_line_2"></div>
    <img alt="" src="/images/training/bg/alllesson.gif" />
  </div>--%>
</body>
</html>
